const express = require('express');
const router = express.Router();
const {asyncHandler} = require('../utils/sendResult');
const JwtTool = require("../utils/jwtTool")
const {findOneUser} = require("../controller/userController")
router.get("/", asyncHandler(async (req, res, next) => {
    await JwtTool.analysis(req);
    return findOneUser({
        _id:req.userInfo._id,
    })
}))


module.exports = router;
